package o;

import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;
import android.text.TextUtils;
import com.huawei.hmf.orb.aidl.impl.GetServiceRequest;
import o.ffs.e;

public class fha extends e {
    private IBinder ˊ = new fgq();
    private final fgz ˏ;

    public fha(fgz o_fgz) {
        this.ˏ = o_fgz;
    }

    public void ॱ(GetServiceRequest getServiceRequest, ffv o_ffv) throws RemoteException {
        if (!(getServiceRequest == null || getServiceRequest.ˏ() != 0 || getServiceRequest.ˋ() == null)) {
            Intent ˋ = getServiceRequest.ˋ();
            fgx from = fgx.from(fjn.ˎ(ˋ).ˋ(fgx.getDescriptor()));
            if (!TextUtils.isEmpty(from.packageName)) {
                int onNewBind = this.ˏ.onNewBind(from.packageName, ˋ);
                if (onNewBind == 0) {
                    o_ffv.ˋ(onNewBind, this.ˊ);
                    return;
                } else {
                    o_ffv.ˋ(onNewBind, null);
                    return;
                }
            }
        }
        o_ffv.ˋ(207135000, null);
    }
}
